<%@ page import="apralms.ProductIndex" %>



<div class="fieldcontain ${hasErrors(bean: productIndexInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="productIndex.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="10" required="" value="${productIndexInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productIndexInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="productIndex.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="50" required="" value="${productIndexInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productIndexInstance, field: 'scheme', 'error')} required">
	<label for="scheme">
		<g:message code="productIndex.scheme.label" default="Scheme" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="scheme" name="scheme.id" from="${apralms.Scheme.list()}" optionKey="id" required="" value="${productIndexInstance?.scheme?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productIndexInstance, field: 'product', 'error')} required">
	<label for="product">
		<g:message code="productIndex.product.label" default="Product" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="product" name="product.id" from="${apralms.Product.list()}" optionKey="id" required="" value="${productIndexInstance?.product?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productIndexInstance, field: 'parameter', 'error')} required">
	<label for="parameter">
		<g:message code="productIndex.parameter.label" default="Parameter" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="parameter" name="parameter.id" from="${apralms.Parameter.list()}" optionKey="id" required="" value="${productIndexInstance?.parameter?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productIndexInstance, field: 'known', 'error')} ">
	<label for="known">
		<g:message code="productIndex.known.label" default="Known" />
		
	</label>
	<g:checkBox name="known" value="${productIndexInstance?.known}" />
</div>

<div class="fieldcontain ${hasErrors(bean: productIndexInstance, field: 'targetValue', 'error')} required">
	<label for="targetValue">
		<g:message code="productIndex.targetValue.label" default="Target Value" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="targetValue" step="any" min="0" max="100000" required="" value="${productIndexInstance?.targetValue}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: productIndexInstance, field: 'limitValue', 'error')} required">
	<label for="limitValue">
		<g:message code="productIndex.limitValue.label" default="Limit Value" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="limitValue" step="any" min="0" max="100000" required="" value="${productIndexInstance?.limitValue}"/>
</div>

